<script setup>
// // import { useUser } from '@/stores/modules/user.js'
// import { useUser, useCount } from '@/stores/index.js'
// import { useRouter } from 'vue-router'
// import request from '@/utils/request.js'
// // import { useRouter, useRoute } from 'vue-router'
// const router = useRouter()
// // const route = useRoute()
// const getlist = () => {
//   console.log(router)
//   // router.push('/sontwo')
// }
// const User = useUser()
// const Count = useCount()
// const requestfn = () => {
//   const res = request.get('/my/cate/list')
//   console.log(res)
// }
</script>

<template>
  <!-- <div class="container">
    <router-view></router-view>
    <el-button @click="$router.push('/sonone')" color="pink" plain>
      跳转到子组件1
    </el-button>
  -->
  <!-- <button @click="getlist()">跳转到子组件2</button> -->
  <!--
    <p>文档token是{{ User.token }}</p>
    <el-button @click="User.gettoken('11111118929kgnau')" color="blue" plain>
      点击获得token
    </el-button>
    <el-button @click="User.nulltoken()" color="green">
      点击清空token
    </el-button>
    <p>count是{{ Count.count }}</p>
    <el-button @click="Count.deccount()" color="blue" plain>
      点击减少5
    </el-button>
    <el-button @click="Count.inscount()" color="green"> 点击增加5 </el-button>
    <button @click="requestfn">点击我发送请求</button>
  </div> -->
  <div class="container">
    <router-view></router-view>
  </div>
</template>

<style scoped></style>
